<?php
/*
Template Name:Super-Ublog-Black
Description:Ublog系列Black模板，黑色简明大气，适合做博客模板。<br/>移植于WP的Problog。<a href="http://zhizhe8.net/" title="访问 无名智者个人博客">无名智者</a> 大幅修改，原作者 <a href="http://viluo.com">viLou</a><hr/>设置：<a href="./template.php?action=custom-top"><font color="red">更改底部图片</font></a>
Version:1.0
Author:无名智者
Author Url:http://zhizhe8.net
Sidebar Amount:1
ForEmlog:5.0.1 | 5.0.0
*/
header("Access-Control-Allow-Origin: *");
header("Cache-Control: no-cache"); 
if(!defined('EMLOG_ROOT')) {exit('error!');}
$note = isset($_GET['note']) ? strip_tags($_GET['note']) : '';
$par1 = isset($params[1])    ? strip_tags($params[1])    : '';
require_once View::getView('module');
ob_clean();
flush();
if($note != 'debug') {
ob_start("compress_html");
}
doAction('index_head_most-before');
if('http://'.$_SERVER['SERVER_NAME'].'/' != BLOG_URL) {
Header("HTTP/1.1 301 Moved Permanently");
Header("Location:".trim(BLOG_URL, '/').$_SERVER['PHP_SELF']); }
define('CDN_URL', 'http://stusframe.duapp.com/blogcdn/');
define('JS_URL', TEMPLATE_URL.'script/');
define('CSS_URL', TEMPLATE_URL.'css/');
define('IMG_URL', TEMPLATE_URL.'img/');
define('IMG2_URL', TEMPLATE_URL.'images/');
define('PLUGIN_URL', TEMPLATE_URL.'plugins/');
define('CEDITOR_URL', CDN_URL.'umed/');

if (false!==strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 7') || false!==strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 6') || false!==strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 5')) {
	header('Location: '.TEMPLATE_URL.'fuckie.php');
	exit;
}
?>
<!DOCTYPE HTML>
<html lang="zh-CN" xmlns="x">
<head>
<div id="sys_loading_tips" onclick="sys_loading_tips.style.display='none';" style="display:block;bottom:0px;right:1px!important;right:18px;width:200px;line-height:70px;position:fixed;border:1px;text-align:center;"><img src="<?php echo IMG_URL; ?>big_loading.gif"></div>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $site_title; ?></title>
<meta name="keywords" content="<?php echo $site_key; ?>" />
<meta name="description" content="<?php echo $site_description; ?>" />
<meta name="generator" content="<?php echo BLOG_NAME;?>" />
<?php doAction('index_head'); ?>
<!--<script type="text/javascript" src="<?php echo JS_URL; ?>jquery-1.10.2.min.js"></script>-->
<script type="text/javascript" src="<?php echo CDN_URL; ?>script/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<?php echo CDN_URL; ?>js.php"></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS"  href="<?php echo BLOG_URL; ?>rss.php" />
<meta name="author" content="<?php echo BLOG_NAME;?>" />
<meta name="Copyright" content="Copyright 2012-2013 <?php echo BLOG_NAME; ?> All Rights Reserved." />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo CDN_URL ?>css.php" type="text/css">

<script type="text/javascript" src="<?php echo JS_URL; ?>wmzhizhe.js" ></script>
<script type="text/javascript" src="<?php echo JS_URL; ?>theme_script.js" ></script>
<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css" type="text/css">
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="<?php echo CSS_URL ?>uquwu.css" />
<?php /*
<!--<script type="text/javascript" src="http://bcs.duapp.com/zhizhefile-b2/bootstrap/js/bootstrap.min.js"></script>-->
<script type="text/javascript" src="<?php echo JS_URL ?>bootstrap.min.js"></script>
<!--<script type="text/javascript">var syntaxhighlighter_dir = '<?php echo TEMPLATE_URL; ?>plugins/syntaxHighlighter';</script>-->
*/ ?>
<script type="text/javascript" src="<?php echo BLOG_URL; ?>include/lib/js/common_tpl.js" ></script>
<div id="wmzz_alert_system" style="display:none;"><div id="wmzz_alert_warning"><span id="wmzz_alert_title"></span><span id="wmzz_alert_eien"></span><span id="wmzz_alert_line2"></span><span id="wmzz_alert_button" onclick="wmzz_alert_system.style.display='none';"></span></div>
<script type="text/javascript">function alert(value) { wa(value,'提示信息','确定'); }</script>
</div>
</head>
<?php doAction('index_head3');?>
<body><a name="r_hdx" id="r_hdx"></a>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <a class="navbar-brand" href="<?php echo BLOG_URL; ?>"><?php echo BLOG_NAME; ?></a>
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    <ul class="nav navbar-nav">
     <?php blog_navi(); ?>
    </ul>
</div><!-- /.navbar-collapse -->
<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe>
</div><br/><br/>
<div id="container">
<div id="t_box" class="cbx">
	<div id="welcome">
		<?php
			global $CACHE; 
			$newtws_cache = $CACHE->readCache('newtw');
			$istwitter = Option::get('istwitter');
		?>
		<?php foreach($newtws_cache as $value): ?>
		<li>
			碎语：<a href="<?php echo BLOG_URL . 't/'; ?>"><?php echo $value['t']; ?></a>
		</li>
		<?php endforeach; ?>
	</div>
	<script>
		var c, _ = Function;
		with( o = document.getElementById("welcome")) {
			innerHTML += innerHTML;
			onmouseover = _("c=1");
			onmouseout = _("c=0");
		}( F = _("if(#%27||!c)#++,#%=o.scrollHeight>>1;setTimeout(F,#%27?10:5000);".replace(/#/g, "o.scrollTop")))();
	</script>
	<div id="t_share">
		<a href="<?php echo BLOG_URL; ?>url.php?url=http://list.qq.com/cgi-bin/qf_invite?id=68bf6755aa6f80813d44191421eba391ea75147a5c88b4a8" target="_blank" title="免费邮件订阅本博客">订阅博客</a> | <a title="<?php echo $blogname; ?> RSS订阅" target="_blank" href="<?php echo BLOG_URL; ?>rss.php" />RSS</a>
	</div>
	<div class="clear"></div>
</div>
	<script type="text/javascript">
	//:has(ul)
	$('#nav').children("li").hover(
		function(){
			var $this = $(this);
			$this.children("a").addClass("cura");
			var $children = $this.children("ul");
			if($children){
				$children.slideDown();
			}
		},
		function(){
			var $this = $(this);
			$this.children("a").removeClass("cura");
			var $children = $this.children("ul");
			if($children){
				$children.hide();
			}
		}
	);
	</script>
<div id="shangxia">
<div id="shang" title="↑ 返回顶部" href="#r_hdx" onclick="go('r_hdx');"></div>
<div id="xia" title="↓ 移至底部" href="#wdb" onclick="go('wdb');"></div>
</div>